package cn.lhn.ridersclub.mapper;

import cn.lhn.ridersclub.entity.History;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HistoryMapper extends BaseMapper<History> {

    @Select("select * from history where account_id = ${accountId} order by create_time desc limit 10;")
    List<History> listHistory(@Param("accountId") Long accountId, @Param("startId") Long startId);
}
